Learn T-SQL From Scratch: An Easy-to-Follow Guide for Designing, Developing, and Deploying Databases in the SQL Server and Writing T-SQL Queries Efficiently by Brahmanand Shukla

Learn T-SQL From Scratch: An Easy-to-Follow Guide for Designing, Developing, and Deploying Databases in the SQL Server and Writing T-SQL Queries Efficiently by Brahmanand Shukla

Author:Brahmanand Shukla [Shuklan Brahmanand]
Language: eng
Format: epub
Publisher: BPB Publications
Published: 2022-08-15T00:00:00+00:00


Figure 6.17: Right Outer Join – All the rows from right table and only matching rows from the left table

RIGHT JOIN can be also used to get the rows from right table, if the join condition does not have any matching row in the left table. It can be understood from the following diagram:

Figure 6.18: Right Outer Join – All the rows from right table, only if no matching rows in the left table

Let’s now try query with RIGHT JOIN between Customer and PurchaseOrder tables. Here is the query:

SELECT C.*

, P.*

FROM Customer C

RIGHT JOIN PurchaseOrder P

ON C.CustomerID = P.CustomerID



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(8731)
Distributed Machine Learning with Python by Guanhua Wang(3396)
Getting Started with CockroachDB by Kishen Das Kondabagilu Rajanna(2560)
Exploratory Data Analysis with Python Cookbook by Ayodele Oluleye(1401)
R Web Scraping Quick Start Guide by Olgun Aydin(1069)
Getting Started With CockroachDB: A Guide to Using a Modern, Cloud-Native, and Distributed SQL Database for Your Data-Intensive Apps by Kishen Das Kondabagilu. Rajanna(1028)
PostgreSQL 13 Cookbook: Over 120 recipes to build high-performance and fault-tolerant PostgreSQL database solutions by Vallarapu Naga Avinash Kumar(995)
Mastering PostgreSQL 15 - Fifth Edition by Hans-Jürgen Schönig(668)
Apache Hadoop 3 Quick Start Guide by Hrishikesh Karambelkar(432)
Pandas for Everyone: Python Data Analysis, 2nd Edition by Daniel Y. Chen(425)
Learn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease by Ashwin Pajankar(376)
SQL Query Design Patterns and Best Practices by Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang(369)
Deploy Node.js on GCP: A comprehensive guide to deploying Node.js on Google Cloud Platform by Jonathan Lin(362)
Configuring Sales and Distribution in SAP ERP by Unknown(336)
Leveling Up with SQL by Mark Simon(310)
Learning Data Science by Sam Lau(305)
Intermediate Python by Oswald Campesato(303)
Data Engineering with AWS: A Comprehensive Guide to Building Robust Data Pipelines by Paul Brian(274)
Pandas Basics by Oswald Campesato(273)
The Definitive Guide to Data Integration by Pierre-Yves BONNEFOY Emeric CHAIZE Raphaël MANSUY Mehdi TAZI(271)